class Student:
    def __init__(self, id: int, name: str):
        self.id = id
        self.name = name

    def rename(self, new_name: str):
        if 3 < len(new_name) < 10:
            self.name = new_name
            return True
        return False

    def valid_name(self) -> bool:
        if self.name:
            return 3 < len(self.name) < 10
        return False
    
        